<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="../css/nav.css">
    <script src="../js/jquery-1.10.1.min.js"></script>
    <!-- nav.js中的事件是通过事件委托绑定的 -->
    <script src="../js/nav1.js"></script>
</head>

<body>
    <div class="header">

    </div>
</body>
<script>

    // $.ajax({
    //     url:"./header.html",
    //     success(){

    //     }
    // })

    // load(url, [data], [callback])
    $(".header").load("./header.html");





</script>

</html>